<ion-header-bar align-title="center" class="bar-calm" id="handerMain">
    <h1 class="title">商品订单</h1>
    <div class="return_img" ng-click="_up_return()">
        <img src="img/return_1.png" alt="">
    </div>
</ion-header-bar>
<ion-content class="has-header" id="content" style="background: #F3F3F3;">
    <ul class="Order_Tab">
        <li ng-class="e==1?'Order_active':'no_active'" ng-click="View_switch(1,2,2,2)">全部</li>
        <li ng-class="b==1?'Order_active':'no_active'" ng-click="View_switch(2,1,2,2)">待付款</li>
        <li ng-class="c==1?'Order_active':'no_active'" ng-click="View_switch(2,2,1,2)">待发货</li>
        <li ng-class="d==1?'Order_active':'no_active'" ng-click="View_switch(2,2,2,1)">待收货</li>
    </ul>
    <div class="shoppingFo" ng-if="shopswitch==='2'">
        <!--全部-->
        <div ng-if="e==1" class="First">

            <div class="Div_container" ng-repeat="dataShopList in shopList track by $index">
                <div>
                    <div>
                        <img ng-src="img/log2.png" alt="" class="logs_in">
                        <span class="once_title">友牧农场</span>
                        <span class="tow_title" ng-if="dataShopList.status===1">待付款</span>
                        <span class="tow_title" ng-if="dataShopList.status===2">待发货</span>
                        <span class="tow_title" ng-if="dataShopList.status===3">待收货</span>
                        <span class="tow_title" ng-if="dataShopList.status===4">已完成</span>
                        <span class="tow_title" ng-if="dataShopList.status===7">退款</span>
                    </div>
                </div>
                <!--下面为展示-->
                <div class="Settlement">
                    <div class="classification" ng-repeat="SettShopList in dataShopList.orderItemList track by $index">
                        <div class="order_img">
                            <img ng-src="{{SettShopList.wbSaleProduct.photo_url}}" alt="">
                        </div>
                        <div class="order_details">
                            <h5>
                                {{SettShopList.wbSaleProduct.name}}
                            </h5>
                            <h5>
                                {{SettShopList.wbSaleProduct.unit}}
                            </h5>
                            <h5>
                                ￥{{SettShopList.wbSaleProduct.price}}
                            </h5>
                            <span>X{{SettShopList.pro_count}}</span>
                        </div>
                    </div>
                    <!--为上面遮挡一下-->
                    <div class="Whens" ng-click="dataShopList.status===1?payments($event):dataShopList.status===3?ceipt($event):dataShopList.status===2?Param($event):complete($event)" data-ids="{{dataShopList.id}}"></div>
                </div>
                <div class="order_pay">
                    <span>实付：￥{{dataShopList.price_h}} (运费 + ￥{{dataShopList.post_remark}} 优惠券 - ￥{{dataShopList.wbCoupon!==null?dataShopList.wbCoupon.offer_num:'0'}})</span>
                </div>
                <div class="order_okBtn">
                    <div ng-if="dataShopList.status===1">
                        <button class="order_active" ng-click="showConfirm($event)" data-orId="{{dataShopList.order_sn}}">取消订单</button>
                        <button class="order_noactive" ng-click="payments($event)" data-ids="{{dataShopList.id}}">去支付</button>
                    </div>
                    <div ng-if="dataShopList.status===2">
                        <button class="order_active" ng-click="Minclick()">提醒发货</button>
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                    <div ng-if="dataShopList.status===3">
                        <button class="order_noactive" ng-click="goodsConfirm($event)" data-orId="{{dataShopList.order_sn}}">确定收货</button>
                    </div>
                    <div ng-if="dataShopList.status===4">
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                </div>
            </div>

        </div>
        <!--待付款-->
        <div class="First" ng-if="b==1">
            <div class="Div_container" ng-repeat="dataShopList in shopList track by $index" ng-if="dataShopList.status===1">
                <div>
                    <div>
                        <img ng-src="img/log2.png" alt="" class="logs_in">
                        <span class="once_title">友牧农场</span>
                        <span class="tow_title" ng-if="dataShopList.status===1">待付款</span>
                        <span class="tow_title" ng-if="dataShopList.status===2">待发货</span>
                        <span class="tow_title" ng-if="dataShopList.status===3">待收货</span>
                        <span class="tow_title" ng-if="dataShopList.status===4">已完成</span>
                        <span class="tow_title" ng-if="dataShopList.status===7">退款</span>
                    </div>
                </div>
                <!--下面为展示-->
                <div class="Settlement">
                    <div class="classification" ng-repeat="SettShopList in dataShopList.orderItemList track by $index">
                        <div class="order_img">
                            <img ng-src="{{SettShopList.wbSaleProduct.photo_url}}" alt="">
                        </div>
                        <div class="order_details">
                            <h5>
                                {{SettShopList.wbSaleProduct.name}}
                            </h5>
                            <h5>
                                {{SettShopList.wbSaleProduct.unit}}
                            </h5>
                            <h5>
                                ￥{{SettShopList.wbSaleProduct.price}}
                            </h5>
                            <span>X{{SettShopList.pro_count}}</span>
                        </div>
                    </div>
                    <!--为上面遮挡一下-->
                    <div class="Whens" ng-click="dataShopList.status===1?payments($event):dataShopList.status===3?ceipt($event):dataShopList.status===2?Param($event):complete($event)" data-ids="{{dataShopList.id}}"></div>
                </div>
                <div class="order_pay">
                    <span>实付：￥{{dataShopList.price_h}} (运费 + ￥{{dataShopList.post_remark}} 优惠券 - ￥{{dataShopList.wbCoupon!==null?dataShopList.wbCoupon.offer_num:'0'}})</span>
                </div>
                <div class="order_okBtn">
                    <div ng-if="dataShopList.status===1">
                        <button class="order_active" ng-click="showConfirm($event)" data-orId="{{dataShopList.order_sn}}">取消订单</button>
                        <button class="order_noactive" ng-click="payments($event)" data-ids="{{dataShopList.id}}">去支付</button>
                    </div>
                    <div ng-if="dataShopList.status===2">
                        <button class="order_active" ng-click="Minclick()">提醒发货</button>
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                    <div ng-if="dataShopList.status===3">
                        <button class="order_noactive" ng-click="goodsConfirm($event)" data-orId="{{dataShopList.order_sn}}">确定收货</button>
                    </div>
                    <div ng-if="dataShopList.status===4">
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                </div>
            </div>
        </div>
        <!--待发货-->
        <div class="First" ng-if="c==1">
            <div class="Div_container" ng-repeat="dataShopList in shopList track by $index" ng-if="dataShopList.status===2">
                <div>
                    <div>
                        <img ng-src="img/log2.png" alt="" class="logs_in">
                        <span class="once_title">友牧农场</span>
                        <span class="tow_title" ng-if="dataShopList.status===1">待付款</span>
                        <span class="tow_title" ng-if="dataShopList.status===2">待发货</span>
                        <span class="tow_title" ng-if="dataShopList.status===3">待收货</span>
                        <span class="tow_title" ng-if="dataShopList.status===4">已完成</span>
                        <span class="tow_title" ng-if="dataShopList.status===7">退款</span>
                    </div>
                </div>
                <!--下面为展示-->
                <div class="Settlement">
                    <div class="classification" ng-repeat="SettShopList in dataShopList.orderItemList track by $index">
                        <div class="order_img">
                            <img ng-src="{{SettShopList.wbSaleProduct.photo_url}}" alt="">
                        </div>
                        <div class="order_details">
                            <h5>
                                {{SettShopList.wbSaleProduct.name}}
                            </h5>
                            <h5>
                                {{SettShopList.wbSaleProduct.unit}}
                            </h5>
                            <h5>
                                ￥{{SettShopList.wbSaleProduct.price}}
                            </h5>
                            <span>X{{SettShopList.pro_count}}</span>
                        </div>
                    </div>
                    <!--为上面遮挡一下-->
                    <div class="Whens" ng-click="dataShopList.status===1?payments($event):dataShopList.status===3?ceipt($event):dataShopList.status===2?Param($event):complete($event)" data-ids="{{dataShopList.id}}"></div>
                </div>
                <div class="order_pay">
                    <span>实付：￥{{dataShopList.price_h}} (运费 + ￥{{dataShopList.post_remark}} 优惠券 - ￥{{dataShopList.wbCoupon!==null?dataShopList.wbCoupon.offer_num:'0'}})</span>
                </div>
                <div class="order_okBtn">
                    <div ng-if="dataShopList.status===1">
                        <button class="order_active" ng-click="showConfirm($event)" data-orId="{{dataShopList.order_sn}}">取消订单</button>
                        <button class="order_noactive" ng-click="payments($event)" data-ids="{{dataShopList.id}}">去支付</button>
                    </div>
                    <div ng-if="dataShopList.status===2">
                        <button class="order_active" ng-click="Minclick()">提醒发货</button>
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                    <div ng-if="dataShopList.status===3">
                        <button class="order_noactive" ng-click="goodsConfirm($event)" data-orId="{{dataShopList.order_sn}}">确定收货</button>
                    </div>
                    <div ng-if="dataShopList.status===4">
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                </div>
            </div>
        </div>
        <!--待收货-->
        <div class="First" ng-if="d==1">
            <div class="Div_container" ng-repeat="dataShopList in shopList track by $index" ng-if="dataShopList.status===3">
                <div>
                    <div>
                        <img ng-src="img/log2.png" alt="" class="logs_in">
                        <span class="once_title">友牧农场</span>
                        <span class="tow_title" ng-if="dataShopList.status===1">待付款</span>
                        <span class="tow_title" ng-if="dataShopList.status===2">待发货</span>
                        <span class="tow_title" ng-if="dataShopList.status===3">待收货</span>
                        <span class="tow_title" ng-if="dataShopList.status===4">已完成</span>
                        <span class="tow_title" ng-if="dataShopList.status===7">退款</span>
                    </div>
                </div>
                <!--下面为展示-->
                <div class="Settlement">
                    <div class="classification" ng-repeat="SettShopList in dataShopList.orderItemList track by $index">
                        <div class="order_img">
                            <img ng-src="{{SettShopList.wbSaleProduct.photo_url}}" alt="">
                        </div>
                        <div class="order_details">
                            <h5>
                                {{SettShopList.wbSaleProduct.name}}
                            </h5>
                            <h5>
                                {{SettShopList.wbSaleProduct.unit}}
                            </h5>
                            <h5>
                                ￥{{SettShopList.wbSaleProduct.price}}
                            </h5>
                            <span>X{{SettShopList.pro_count}}</span>
                        </div>
                    </div>
                    <!--为上面遮挡一下-->
                    <div class="Whens" ng-click="dataShopList.status===1?payments($event):dataShopList.status===3?ceipt($event):dataShopList.status===2?Param($event):complete($event)" data-ids="{{dataShopList.id}}"></div>
                </div>
                <div class="order_pay">
                    <span>实付：￥{{dataShopList.price_h}} (运费 + ￥{{dataShopList.post_remark}} 优惠券 - ￥{{dataShopList.wbCoupon!==null?dataShopList.wbCoupon.offer_num:'0'}})</span>
                </div>
                <div class="order_okBtn">
                    <div ng-if="dataShopList.status===1">
                        <button class="order_active" ng-click="showConfirm($event)" data-orId="{{dataShopList.order_sn}}">取消订单</button>
                        <button class="order_noactive" ng-click="payments($event)" data-ids="{{dataShopList.id}}">去支付</button>
                    </div>
                    <div ng-if="dataShopList.status===2">
                        <button class="order_active" ng-click="Minclick()">提醒发货</button>
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                    <div ng-if="dataShopList.status===3">
                        <button class="order_noactive" ng-click="goodsConfirm($event)" data-orId="{{dataShopList.order_sn}}">确定收货</button>
                    </div>
                    <div ng-if="dataShopList.status===4">
                        <button class="order_noactive" ng-click="returnUpper('tabs.homepage')">再次购买</button>
                    </div>
                </div>
            </div>
        </div>
        <!--我是有底线的人-->
        <div class="Baseline">
        <span>
            <img ng-src="img/baseline.png" alt="">
            我是有底线的
            <img ng-src="img/baseline.png" alt="">
        </span>
        </div>
    </div>
    <!--//暂时没有数据-->
    <div ng-if="shopswitch==='1'" class="More">
        您还没有商品订单信息，赶紧选购吧！
    </div>
</ion-content>